<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <link rel="stylesheet" href="./reset.css" />
    <style>
      .container {
        height: 300px;
        width: 300px;
        border: 1px solid red;
        display: flex;
        flex-wrap: wrap;
        align-content: center;
        justify-content: center;
        /* align-items: center; */
        /* flex-direction: column; */
        /* align-content: space-evenly;
        justify-content: space-evenly; */
        /* align-content: center;
        justify-content: center; */
      }
      .flex_item {
        /* width: 80px; */
        height: 80px;
        width: 80px;
        border: 1px solid blue;
      }
      .flex_item:nth-of-type(1) {
        background: green;
        order: 1;
      }
      .flex_item:nth-of-type(9) {
        background: yellow;
        order: -1;
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="flex_item">1</div>
      <div class="flex_item">2</div>
      <div class="flex_item">3</div>
      <div class="flex_item">4</div>
      <div class="flex_item">5</div>
      <div class="flex_item">6</div>
      <div class="flex_item">7</div>
      <div class="flex_item">8</div>
      <div class="flex_item">9</div>
    </div>
  </body>
</html>
